<?php

	$performed_by = get_entity($vars['item']->subject_guid); // $statement->getSubject();
	$object = get_entity($vars['item']->object_guid);
	$url = $object->getURL();
	$time = $vars['item']->posted;
	
	$url = "<a href=\"{$performed_by->getURL()}\">{$performed_by->name}</a>";
	$string = sprintf(elgg_echo("poll:river:voted"),$url) . " ";
	$string .= elgg_echo("poll:river:vote") . " <a href=\"" . $object->getURL() . "\">" . $object->question . "</a>";
	
?>

<?php 
	//echo $string; 
		echo elgg_view('river/item/extra',
					array('performed_by' => $performed_by,
						'object' => $object,
						'time'=>$time,
						'body' => $string,
						'show_comment' => TRUE,
						'vote' => TRUE,)
					);
?>